Ext.define('dg.view.TreeMenu', {
    extend: 'Ext.tree.Panel',
	
	alias: 'widget.treemenu',
	
	rootVisible : false,
	
	constructor : function ( config ){
		config= config || {};
		
		config.store= Ext.create('Ext.data.TreeStore', {
			proxy: {
				type: 'ajax',
				url: 'server/getnodos.txt'
			},
			root: {
				text: 'Ext JS',
				id: 'src',
				expanded: true
			}
		});
	
	
		this.callParent( [config] );
	}
});